<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 凤与泥
  Date: 2021/5/6
  Time: 20:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询信息</title>
    <style>
        a{
           text-decoration: none;
            color: black;
        }
    </style>
</head>
<body>
    <table border="1px" align="center">
        <tr align="center">
            <td>id</td><td>姓名</td><td>年龄</td><td colspan="2" align="center">操作</td>
        </tr>
        <c:forEach items="${stus}" var="stu">
            <tr  align="center">
                <td>${stu.sid}</td> <td>${stu.name}</td> <td>${stu.age}</td>
                <td><a href="/delectStudentServlet?sid=${stu.sid}">删除</a></td>
                <td><a href="/findByidStudentServlet?sid=${stu.sid}">修改</a></td>
            </tr>
        </c:forEach>
        <tr><td colspan="5" align="center"><a href="/add.jsp">添加</a></td></tr>
    </table>
</body>
</html>
